import { combineReducers } from 'redux';

export default combineReducers({
    userinfo: (state = {}, action) => {
        switch (action.type) {
            case "SET_USERINFO":
                return action.payload;
            default:
                return state;
        }
    },
    historyroute: (state = [], action) => {
        switch (action.type) {
            case "SET_HISTORYROUTE":
                return action.payload;
            default:
                return state;
        }
    }
});